package com.suo.enroll.controller;


import com.suo.enroll.entry.Msg;
import com.suo.enroll.service.IMsgService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.Resource;

@Controller
public class PageController {

    @GetMapping("/userList_wsq_and_hxh_yiqikaifa_bunengbeicaidao_suijishu_19283")
    public String userListPage() {
        return "userList"; // 返回模板文件名 userList.html
    }

    @GetMapping("/login")
    public String login() {
        return "login"; // 返回模板文件名 userList.html
    }

    @GetMapping("/msgList")
    public String msgList() {
        return "msgList"; // 返回模板文件名 userList.html
    }

    @GetMapping("/msg/{id}")
    public String getMsgById(@PathVariable Long id) {
        return "msgDetail";  // 返回详情页面
    }
}
